import request from '@/utils/request'

enum API {
    WEBINFO_URL = '/api/content/webInfo/getWebInfo',
    SORTINFO_URL = '/api/content/webInfo/getSortInfo',
    ARTICLE_URL = '/api/content/article/listArticle',
    ADMIRE_URL = '/api/user/getAdmire',
    LOVEPHOTO_URL="/api/content/webInfo/listAdminLovePhoto",
    RESOURCEPATH_URL="/api/content/resource/listResourcePath",
    LISTFUNNY_URL="/api/content/resource/listFunny",
    LISTFRIEND_URL="/api/content/webInfo/listFriend",
    LISTCOLLECTION_URL="/api/content/resource/listCollect"
   
}



export const reqWebInfo = () => request.get<any, any>(API.WEBINFO_URL)

export const reqSortInfo = () => request.get<any, any>(API.SORTINFO_URL)

export const reqArticleInfo = (pagination:any) => request.post<any, any>(API.ARTICLE_URL, pagination)

export const reqAdmire = () => request.get<any, any>(API.ADMIRE_URL)

export const reqLovePhoto = ()=>request.get<any,any>(API.LOVEPHOTO_URL)

export const reqResourcePath = (pagination:any)=>request.post<any,any>(API.RESOURCEPATH_URL,pagination)

export const reqListFunny = ()=>request.get<any,any>(API.LISTFUNNY_URL)

export const reqListFriend = ()=>request.get<any,any>(API.LISTFRIEND_URL)

export const reqListCollect = ()=>request.get<any,any>(API.LISTCOLLECTION_URL)